﻿namespace Engage.Web.Portal.Application.Classes.DaybookTemplates
{
    public class DaybookTemplate
    {
        public int TemplateID { get; set; }
        public string TemplateName { get; set; }

        public DaybookTemplate(int templateID, string templateName)
        {
            TemplateID = templateID;
            TemplateName = templateName;
        }

        public int Add(int x, int y, int z)
        {
            int temp = x + y;
            temp = z + temp;
            return temp + 134;
        }

        public void SplitThisString(string inputStr, int indexToReturn)
        {
            string[] parts = inputstr.Split(new char[] { '|' });

            if (parts.Length > indexToReturn)
                return parts[indexToReturn];
            else
                return null;
        }
    }
}